#ifndef LOGINWIDGET_HPP
#define LOGINWIDGET_HPP

#include <QWidget>

class QLineEdit;
class QPushButton;
class QLabel;

class LoginWidget : public QWidget
{
    Q_OBJECT
public:
    explicit LoginWidget(QWidget *parent = 0);
    

private:
    QLineEdit   *m_nameLine;
    QLineEdit   *m_passwordLine;
    QPushButton *m_enterButton;
    static const short maxInputLength = 80;
signals:
    void authorization(QString &name, QString &password);
private slots:
    void onEnterClicked();
};

#endif // LOGINWIDGET_HPP
